package com.alpha.eceasy.mall.service.impl;

import com.alpha.eceasy.mall.api.entity.MallCustomerCollect;
import com.alpha.eceasy.mall.mapper.MallCustomerCollectMapper;
import com.alpha.eceasy.mall.service.MallCustomerCollectService;
import com.alpha.eceasy.extension.BaseServiceImpl;
import com.alpha.eceasy.mall.util.SecurityUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户收藏表 服务实现类
 * </p>
 *
 * @author huangpengfei
 * @since 2024-05-09
 */
@Service
public class MallCustomerCollectServiceImpl extends BaseServiceImpl<MallCustomerCollectMapper, MallCustomerCollect> implements MallCustomerCollectService {
    @Override
    public boolean save(MallCustomerCollect entity) {
        entity.setCustomerGuid(SecurityUtils.getUserGuid());
        return super.save(entity);
    }
}
